; 输出字符串

assume cs:code, ds:data

data segment
    string db "Ia love aaa!",'$'
    string2 db "aa",'$'
    buffer db 20
data ends

code segment

start: mov ax,data
        mov ds,ax

        lea dx,string2
        mov ah,09h
        int 21h

        lea dx,buffer
        mov ah,0ah
        int 21h

        mov ah,09h
        int 21h

        mov ah,0
        int 16h

        mov dl,al
        mov ah,02h
        int 21h

        ; mov dl,al
        ; int 21h

        mov dx,ax

        mov ax,4c00h
        int 21h


code ends


end start


